﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Data;

namespace Albatross.WPF.Common.Views {
	public class OrMultiValueConverter : IMultiValueConverter {
		public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture) {
			foreach (object value in values) {
				if (value != DependencyProperty.UnsetValue && System.Convert.ToBoolean(value)) {
					return true;
				}
			}
			return false;
		}

		public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture) {
			throw new NotSupportedException();
		}
	}

}
